﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CuitWinWindow.cs" company="">
//   
// </copyright>
// <summary>
//   The AST win button.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace UITest.CUIT.CuitControls.WinControls
{
    using Microsoft.VisualStudio.TestTools.UITesting;
    using Microsoft.VisualStudio.TestTools.UITesting.WinControls;

    /// <summary>
    ///     The AST win button.
    /// </summary>
    public class CuitWinWindow : CuitWinControl<WinWindow>
    {
        #region Constructors and Destructors

        /// <summary>
        ///     Initializes a new instance of the <see cref="CuitWinWindow" /> class.
        /// </summary>
        public CuitWinWindow()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitWinWindow"/> class.
        /// </summary>
        /// <param name="testControl">
        /// The test control.
        /// </param>
        public CuitWinWindow(UITestControl testControl)
            : base(testControl)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitWinWindow"/> class.
        /// </summary>
        /// <param name="searchProperties">
        /// The search properties.
        /// </param>
        public CuitWinWindow(string searchProperties)
            : base(searchProperties)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitWinWindow"/> class.
        /// </summary>
        /// <param name="testControl">
        /// The test control.
        /// </param>
        /// <param name="searchProperties">
        /// The search properties.
        /// </param>
        public CuitWinWindow(UITestControl testControl, string searchProperties)
            : base(testControl, searchProperties)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitWinWindow"/> class.
        /// </summary>
        /// <param name="testControl">
        /// The test control.
        /// </param>
        /// <param name="searchProperties">
        /// The search properties.
        /// </param>
        /// <param name="filterProperties">
        /// The filter properties.
        /// </param>
        public CuitWinWindow(UITestControl testControl, string searchProperties, string filterProperties)
            : base(testControl, searchProperties, filterProperties)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitWinWindow"/> class.
        /// </summary>
        /// <param name="wrappedControl">
        /// The wrapped control.
        /// </param>
        /// <param name="searchProperties">
        /// The search properties.
        /// </param>
        public CuitWinWindow(ICuitControlBase wrappedControl, string searchProperties)
            : base(wrappedControl, searchProperties)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitWinWindow"/> class.
        /// </summary>
        /// <param name="wrappedControl">
        /// The wrapped control.
        /// </param>
        /// <param name="searchProperties">
        /// The search properties.
        /// </param>
        /// <param name="filterProperties">
        /// The filter properties.
        /// </param>
        public CuitWinWindow(ICuitControlBase wrappedControl, string searchProperties, string filterProperties)
            : base(wrappedControl, searchProperties, filterProperties)
        {
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///     Gets a value indicating whether always on top.
        /// </summary>
        public bool AlwaysOnTop
        {
            get
            {
                return this._control.AlwaysOnTop;
            }
        }

        /// <summary>
        ///     Gets a value indicating whether has title bar.
        /// </summary>
        public bool HasTitleBar
        {
            get
            {
                return this._control.HasTitleBar;
            }
        }

        /// <summary>
        ///     Gets or sets a value indicating whether maximized.
        /// </summary>
        public bool Maximized
        {
            get
            {
                return this._control.Maximized;
            }

            set
            {
                this._control.Maximized = value;
            }
        }

        /// <summary>
        ///     Gets or sets a value indicating whether minimized.
        /// </summary>
        public bool Minimized
        {
            get
            {
                return this._control.Minimized;
            }

            set
            {
                this._control.Minimized = value;
            }
        }

        /// <summary>
        ///     Gets the order of invocation.
        /// </summary>
        public int OrderOfInvocation
        {
            get
            {
                return this._control.OrderOfInvocation;
            }
        }

        /// <summary>
        ///     Gets a value indicating whether popup.
        /// </summary>
        public bool Popup
        {
            get
            {
                return this._control.Popup;
            }
        }

        /// <summary>
        ///     Gets a value indicating whether resizable.
        /// </summary>
        public bool Resizable
        {
            get
            {
                return this._control.Resizable;
            }
        }

        /// <summary>
        ///     Gets or sets a value indicating whether restored.
        /// </summary>
        public bool Restored
        {
            get
            {
                return this._control.Restored;
            }

            set
            {
                this._control.Restored = value;
            }
        }

        /// <summary>
        ///     Gets a value indicating whether show in taskbar.
        /// </summary>
        public bool ShowInTaskbar
        {
            get
            {
                return this._control.ShowInTaskbar;
            }
        }

        /// <summary>
        ///     Gets a value indicating whether tab stop.
        /// </summary>
        public bool TabStop
        {
            get
            {
                return this._control.TabStop;
            }
        }

        /// <summary>
        ///     Gets a value indicating whether transparent.
        /// </summary>
        public bool Transparent
        {
            get
            {
                return this._control.Transparent;
            }
        }

        #endregion
    }
}